x86/vpmu: Move vpmu_do_cpuid() handling into {pv,hvm}_cpuid()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Oct 2016 19:35:45 +0000 (20:35 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Dec 2016 18:32:14 +0000 (18:32 +0000)
commit636b15c17a2844a5764733f9f249a5ef9a9631ad
treeb8b30a422bf646f7ce9833df04ed37012416e237
parent79e996a89f695db0d8af745a04121b778100be99
x86/vpmu: Move vpmu_do_cpuid() handling into {pv,hvm}_cpuid()

This reduces the net complexity of CPUID handling by having all adjustments in
the same place.  Remove the now-unused vpmu_do_cpuid() infrastructure.

This involves introducing a vpmu_enabled() predicate, and making the Intel
specific VPMU_CPU_HAS_* constants public.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/traps.c
xen/include/asm-x86/vpmu.h